<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script type="text/javascript">
var node = document.getElementsByTagName("body")[0];
if (node.nodeType==1)
	var value = node.nodeName; 
console.log(value); 

</script>
</body>
</html>
